#!/bin/sh

KC_BASE_URL=$(printenv "KC_BASE_URL")
echo "KC_BASE_URL: $KC_BASE_URL"

KC_REALM=$(printenv "KC_REALM")
echo "KC_REALM: $KC_REALM"

sed -i "s|__KC_BASE_URL__|${KC_BASE_URL}|g" appsettings.Production.json
sed -i "s|__KC_REALM__|${KC_REALM}|g" appsettings.Production.json
cat appsettings.Production.json
